import type { RouteRecordRaw } from 'vue-router';

import { BasicLayout } from '#/layouts';
// import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: 'mdi:home-assistant',
      keepAlive: true,
      order: -1,
      title: '首页',
    },
    name: 'Home',
    path: '/home',
    redirect: '/home/index',
    children: [
      {
        meta: {
          title: '首页',
          hideInMenu: true,
        },
        name: 'home',
        path: '/home/index',
        component: () => import('#/views/dashboard/workspace/index.vue'),
      },
      // {
      //   meta: {
      //     title: '1688授权',
      //     hideInMenu: true,
      //     hideInTab: true,
      //     hideInBreadcrumb: true,
      //   },
      //   name: 'shogun1688',
      //   path: '/shop-auth/shop-auth-home-1688',
      //   component: () => import('#/views/shopAuth/home1688.vue'),
      // },
    ],
  },
];

export default routes;
